<?php

class MailUtil {

	public static function sendMail($subject, $message, $mailTo) {
		$config = Zend_Registry::getInstance()->get('config');
		$mailConfig = $config->mail;
		
		$mail = new Zend_Mail('UTF-8');
		$mail->setBodyText($message);
		$mail->setFrom($mailConfig->username, $mailConfig->alias);
		$mail->addTo($mailTo, $mailTo);
		$mail->setSubject($subject);
		$mail->send();
	}
}